package org.springblade.modules.mes.base.constant;

public enum ScanTypeEnum {
	BATCH_SCAN("1", "批扫"), ONE_SCAN_CHECK("2", "单扫防重"), ONE_SCAN("3", "单扫");

	private String idx = "0";
	private String disName;

	ScanTypeEnum(String inIdx, String name) {
		this.idx = inIdx;
		this.disName = name;
	}

	public String getIdx() {
		return idx;
	}

	public boolean eq(String code) {
		return this.name().equals(code) || this.getIdx().equals(code);
	}
}
